package com.classs05.b_object;

public class Test03 {
    public static void main(String[] args) throws CloneNotSupportedException {
        Person p1 = new Person("张三", "18");
        Object object = p1.clone();
        Person p2 = (Person) object; //克隆成功
        System.out.println(p1 == p2);
        System.out.println(p1.getAge());
        System.out.println(p1.equals(p2));

    }
}
